package com.cdtye.itps.cms.mapper.pillar;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cdtye.itps.cms.dao.pillar.entity.JcwPillar;
import com.cdtye.itps.cms.dao.pillar.vo.JcwPillarVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository
public interface JcwPillarMapper extends BaseMapper<JcwPillar> {
    /**
     * 分页查询,自定义sql语句
     */
    IPage<Map<String,Object>> listPage(IPage page, @Param("vo") JcwPillarVo vo);

    List<Map<String,Object>> getList(@Param("vo") JcwPillarVo vo);

    JcwPillar getPillarBySiteNameAndPillarNum(@Param("siteName") String siteName, @Param("pillarNum") String pillarNum);

    int updatePillarImage(@Param("pillarId") String pillarId,@Param("imgPath") String imgPath);

    IPage<Map<String, Object>> pageList4Brain(IPage iPage, @Param("vo") JcwPillarVo vo);
}
